package com.hongkou.tvstation.common.utils;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {
	public static java.sql.Date toSqlDate(java.util.Date utilDate) {
		return new java.sql.Date(utilDate.getTime());
	}

	private static final SimpleDateFormat simpleDateFormat = new SimpleDateFormat(
			"yyyy-MM-dd");

	public static java.util.Date toDate(String shootingTime) {
		Date date = null;
		try {
			date = simpleDateFormat.parse(shootingTime);
		} catch (ParseException e) {
		}
		return date;
	}
}
